Skip to content

fix(files): resolve file id route params - #122

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/qryptchat-file-id-route-params
Jul 1, 2026
Merged

fix(files): resolve file id route params#122
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/qryptchat-file-id-route-params

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • resolves Promise-based Next.js route params before reading fileId in /api/files/[fileId] handlers
  • fixes the HEAD handler signature so it actually receives route params
  • adds regression coverage for async route params in HEAD and POST metadata requests
  • removes two unused local symbols surfaced by oxlint in the touched file

Why

Next.js 15 can provide dynamic route params asynchronously. GET/POST read params.fileId directly, and HEAD did not accept the route context at all, so HEAD always hit a params is not defined path.

Validation

  • corepack pnpm exec vitest run --config %TEMP%/qryptchat-vitest-no-react.config.mjs src/app/api/files/[fileId]/route.test.js
  • corepack pnpm exec oxlint src/app/api/files/[fileId]/route.js src/app/api/files/[fileId]/route.test.js

@ralyodio
ralyodio merged commit 0ff8df0 into profullstack:master Jul 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants